package com.newhero.doc2pdf.convert.model;

public class JsonResult {

  public static final int CODE_SUCCES = 1; // 请求成功
  public static final int CODE_FAIL = -1; // 请求失败
  public static final int CODE_NOAUTH = -2; // 没有权限

  private int code;
  private String msg;
  private Object obj;

  public JsonResult() {
    this.code = -2;
    this.msg = "";
  }

  public int getCode() {
    return code;
  }

  public void setCode(int code) {
    this.code = code;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public Object getObj() {
    return obj;
  }

  public void setObj(Object obj) {
    this.obj = obj;
  }
}
